package com.designpattern.SimpleFactoryPattern;

/**
 * @Author yp
 * @Date 2021-05-24
 * @Description 产品的抽象接口  女娲
 **/

public interface Person {

    public void say();
}

class Man implements Person {
    @Override
    public void say() {
        System.out.println("男人");
    }
}

class Women implements Person {
    @Override
    public void say() {
        System.out.println("女人");
    }
}